package com.etbsms.service;

import java.util.List;

import com.etbsms.domain.AgricultureAndFood;
import com.etbsms.domain.Users;
import com.etbsms.form.PageForm;
import com.etbsms.form.QueryAAFForm;
import com.etbsms.util.Constants.FLOW_TYPE;

public interface IAgricultureAndFoodService {

	public boolean save(AgricultureAndFood entity);
	public boolean update(AgricultureAndFood entity);
	public AgricultureAndFood get(int seq_no);
	public PageForm<AgricultureAndFood> getOwnForms(Users users,PageForm<AgricultureAndFood> form,boolean isAnalyzed);
	//public PageForm<AgricultureAndFood> getOwnChecker(Users users,PageForm<AgricultureAndFood> form);
	
	
	/**比對有無重覆, 原文標題,作者  
	 * 回傳重覆的 rec_no 
	 **/
	public String comparison(String title_o,String author);
	public AgricultureAndFood get(String rec_no);	
	public QueryAAFForm query(QueryAAFForm form,FLOW_TYPE type);
	public List<AgricultureAndFood> getAll(int flow,FLOW_TYPE type);
	public QueryAAFForm recNo_query(QueryAAFForm form, FLOW_TYPE type);
	
	
	public List<Users> getInputUsers();
	
	public void changeTemporary(Users users);
}
